<?php
defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
?>

<div class="raovat-list">
	<?php echo $this->menu;?>
	<form id="member-create" action="<?php echo JRoute::_('index.php?option=com_raovat&task=create');?>" method="post" class="form-validate form-horizontal" enctype="multipart/form-data">
	<h1>Nhập quảng cáo rao vặt </h1>
	<ul class="create-form">
		<li>
			<?php echo $this->form->getLabel('title'); ?>
			<?php echo $this->form->getInput('title'); ?>
		</li>
		<li>
			<?php echo $this->form->getLabel('description'); ?>
			<?php echo $this->form->getInput('description'); ?>
		</li>
		<li>
			<?php echo $this->form->getLabel('category'); ?>
			<?php echo $this->form->getInput('category'); ?>
		</li>
		
		<li>
			<?php echo $this->form->getLabel('region'); ?>
			<?php echo $this->form->getInput('region'); ?>
		</li>
		
		<li>
			<?php echo $this->form->getLabel('image'); ?>
			<?php echo $this->form->getInput('image'); ?>
		</li>
		<li>
			<?php echo $this->form->getLabel('contact'); ?>
			<?php echo $this->form->getInput('contact'); ?>
		</li>
		
		<li>
			<?php echo $this->form->getLabel('email'); ?>
			<?php echo $this->form->getInput('email'); ?>
		</li>
		<li>
			<?php echo $this->form->getLabel('show_email'); ?>
			<?php echo $this->form->getInput('show_email'); ?>
		</li>
		<li>
			<?php echo $this->form->getLabel('address'); ?>
			<?php echo $this->form->getInput('address'); ?>
		</li>
		
		<li>
			<?php echo $this->form->getLabel('phone'); ?>
			<?php echo $this->form->getInput('phone'); ?>
		</li>
	
		<li>
			<button type="submit" class="validate"><?php echo JText::_('Đăng tin');?></button>
			
			<input type="hidden" name="option" value="com_raovat" />
			<input type="hidden" name="task" value="create" />
			<?php echo JHtml::_('form.token');?>
		</li>
	</ul>
	</form>
</div>